/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package tank.models;

/**
 *
 * @author shengchang
 */
public class Turret {
    private int startX = 0;
    private int startY = 0;
    private int direction = 0; //degree 1 to 360
    private int rotateSpeed = 5;
    DirectionInfo directionInfo;

    public DirectionInfo getDirectionInfo() {
        return directionInfo;
    }

    public void setDirectionInfo(DirectionInfo directionInfo) {
        this.directionInfo = directionInfo;
    }
    
    public Turret()
    {
        directionInfo = new DirectionInfo();
    }

    public void setDirection(int direction) {
        this.direction = direction;
    }

    public void setRotateSpeed(int rotateSpeed) {
        this.rotateSpeed = rotateSpeed;
    }

    public int getDirection() {
        return direction;
    }

    public int getRotateSpeed() {
        return rotateSpeed;
    }
    
    public void setX(int x){
        this.startX = x;
    }
    
    public int getX(){
        return this.startX;
    }
    
    public void setY(int y){
        this.startY = y;
    }
    
    public int getY(){
        return this.startY;
    }
}



